In absence of product documentation in this area, you can have a look at excellent article entitled Webwork Validation on java.net.